package com.hhkj.api.student.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Info
 *
 * @author ZhengJun
 * @since 2023/5/24 21:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InfoRes
{

    /** 姓名 */
    private String name;

    /** 身份证号码 */
    private String idCard;

    /** 到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date courseLineDate;

    /** 手机号 */
    private String phone;

    /** 剩余有效小时数 */
    private Long expiresHourAmount;

    public InfoRes(String name, String idCard, Date courseLineDate, String phone)
    {
        this.name = name;
        this.idCard = idCard;
        this.courseLineDate = courseLineDate;
        this.phone = phone;
    }
}
